3Commas Visible DCA StrategyThis strategy consists of the following elements and can all be set by the user.
1. Entry by moving average cross.
 1) Selection of moving average line.
   - SMA(Simple Moving Average)
   - EMA(Exponential Moving Average)
   - HMA(Hull Moving Average)
 2) Selection of Cross over / Cross under
2. Add Entry by DCA(Dollar Cost Averaging)
  - A DCA strategy is the practice of investing into a currency at preset intervals to  reduce the entry price of a position over time and mitigate volatility risk.
    For example,
    Base Order = 10 Dollar at Price 100%
    Safety Order1 = 20 Dollar at Price 90%
    Safety Order2 = 40 Dollar at Price 80%
    
    Average Price => Price 80~90%
    thereby getting a better average price for your position and greatly reducing risks from the consequences of volatility.
3. Target Price and Stop Loss.
 1) Target Price : Realize profits at % set from the average unit price.
 2) Stop Loss :  Stop Loss % set from the last safety order.
You can easily find out what's related by changing the setting value after setting the strategy.
This strategy has the following Good characteristics.
  
1. It informs you of the assets required according to DCA settings.
 If you are short of assets, a warning sign will appear.
  
2. Amount of assets invested in each long entry and long entry close.
3. Visibility of the lowest purchase price line and DCA purchase location according to DCA setting.
easily check the values set in the backtest.
I hope it will help you. Thank you.
ค้นหาในสคริปต์สำหรับ "stop loss"
MacD Short and/or Long with Bi-Directional TP and SL This tool allows you to test any variable value for MacD and Signal for going Long or Short with each market direction having customizable values for stop loss and take profit.
For example, sometimes the MacD and Signal values are better with different lengths between Short and Long.  You can use this tool to see them overlaid and determine the best settings for going one direction or the other.
This script was preset for use with XBTUSD on the 4 hour time frame.  Another example with this in mind, is take profits and stop losses might not work in the Long market direction but going Short does! Without this tool that would be hard to see since typically stop loss and take profit is applied to both directions.  I found with this tool that a 20% take profit seems to be a good sweet spot for going short with this strategy.
You can customize which MacD histogram you see by going to the style section and turning off the Short or Long parameters so you can see only 1 histogram at a time if you wish.
If you have any questions, please PM me.
Trend Strategy by zdmreThis Strategy is a trend following indicator. It is plotted on price and the current trend can be determined by its placement vis-a-vis price. It is constructed with just three parameters: Period, Multiplier and Entry/Exit Point with Superformula.
The default parameters are 14 for Average True Range (ATR) and 4 for its multiplier. The average true range (ATR) plays a key role in ‘Trend’ as the indicator uses ATR to compute its value and it signals the degree of price volatility. You should note that any changes to these numbers can affect the use of the Trend indicator.
While you using this indicator, you should not avoid putting your stop loss.
For a long position, you can put stop loss right at the red indicator line. For a short position, you can put it at the green indicator line. You can insert your own settings as well.
Using Trend Strategy along with a stop loss pattern is the best way for earning the best wealth in trading.
There is no best setting for any trading indicator.
Price Change Scalping Strategy v1.0 - 3Commas EditionIntroduction 
This strategy implements the Price Change Scalping (PCS) strategy specifically for the 3Commas platform.  The Input settings have been redesigned to match the same inputs as the 3Commas My Bot Settings page.  Only the "Deal Start Condition" section will echo the required PCS-related settings found in the original  Price Change Scalping Strategy v1.0  to successfully implement the strategy.
The strategy uses a price rate of change (ROC) momentum calculation to determine the percent change in price between a defined range of bars. The calculated ROC value is then compared to the Upper Threshold and Lower Threshold values to determine if a trade setup is to be activated. If the threshold is crossed, a trade setup will occur based on the indicator settings. Entry, Take Profit, and Stop Loss prices are calculated and displayed on the chart.  Once the Entry Price is crossed, a long or short position is created (depending on the direction) and once the Take Profit price is crossed, the position is closed.  If the Entry Price is not crossed within a specific number of bars, the trade setup is canceled, and it will proceed to monitor price changes for the next set up.
 How is it original and useful? 
This strategy is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data.  The study version implements the "Start Deal" and "Close Deal" alerts for you to integrate with 3Comma's "Trading View Custom Signal" start condition.  Both script versions will provide the same configuration abilities.  The following list is a brief description of its usefulness:
 
  Full support for all possible 3Commas bot settings.
  Define a short or long trading strategy.
  Price change data source and offset settings.
  Your layering placement relative to the entry price.
  Your trading parameters like take profit and stop loss offsets, trailing take profit support, exchange commission rates, trading start time, and order size multiplication for each layer.
  Flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of entry prices for trading.
  The visibility of detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
  The visibility of detailed Used Amount for Each Step table that details how each layer will be allocated for trading.
 
 How does it compare to other scripts in the Public Library? 
The strategy offers a very detailed, comprehensive settings to address all types of markets found on TradingView where you can implement the price change scalping strategy.  The strategy version can be considered the first of its kind on TradingView to leverage the backtester to provide informative, detailed performance measurements surrounding this unique trading strategy.  The study version will implement the latest alert framework called "Any Alert() Function" where you can create a single alert to handle multiple events, which include:
 
  Deal Start
  Deal Close
 
 Strategy Results 
The default settings are designed to define a "loose" price change settings to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary.  The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting.  It is also using 3.4881% of the equity for the Base Order Size, 4.7097% of equity for the first Safety Order Size.  The Maximum Safety Trade Count is 7 with a Safety Order Volume Scale of 1.33, and a take profit of 2% with no stop loss.  All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market to best implement the price change strategy and obtain better desirable results.  You do so by scrolling through the chart's history and observing moments when prices tend to move rapidly.  Measure the number or bars it typically takes for the price to change at a specific rate.  Using this information, you can adjust the Price Change Settings accordingly to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results.  Settings that seem favorable for one market may be found to be disastrous in another.  Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
 How to obtain access to the script? 
You have two choices:
 
  Use the "Website" link below to obtain access to this indicator, or
  Send us a private message (PM) in TradingView itself.
Price Change Scalping Strategy v1.0Introduction 
This strategy uses a price rate of change (ROC) momentum calculation to determine the percent change in price between a defined range of bars. The calculated ROC value is then compared to the Upper Threshold and Lower Threshold values to determine if a trade setup is to be activated. If the threshold is crossed, a trade setup will occur based on the indicator settings. Entry, Take Profit, and Stop Loss prices are calculated and displayed on the chart.  Once the Entry Price is crossed, a long or short position is created (depending on the direction) and once the Take Profit price is crossed, the position is closed.  If the Entry Price is not crossed within a specific number of bars, the trade setup is canceled, and it will proceed to monitor price changes for the next set up.
 How is it original and useful? 
This strategy is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data.  The study version implements numerous custom alerts for you to build TradingView notifications around specific price action events and stay informed with market activity in real-time.  Both script versions will provide the same configuration abilities where you can define:
 
  Define a short or long trading strategy.
  Price change data source and offset settings.
  Your layering placement relative to the entry price.
  Your trading parameters like take profit and stop loss offsets, exchange commission rates, trading start time, and order size multiplication for each layer.
  Flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of entry prices for trading.
  The visibility of detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
 
 How does it compare to other scripts in the Public Library? 
The strategy offers a very detailed, comprehensive settings to address all types of markets found on TradingView where you can implement the price change scalping strategy.  The strategy version can be considered the first of its kind on TradingView to leverage the backtester to provide informative, detailed performance measurements surrounding this unique trading strategy.  The study version will contain numerous custom alerts to aid in your notification preferences and stay informed on the indicator's activities:
 
  Price Crossed Above Threshold
  Price Crossed Below Threshold
  Enter Long Position
  Exit Long Position
  Enter Short Position
  Exit Short Position
  Price Crossed DCA Layer 1 (Long)
  Price Crossed DCA Layer 2 (Long)
  Price Crossed DCA Layer 3 (Long)
  Price Crossed DCA Layer 4 (Long)
  Price Crossed DCA Layer 5 (Long)
  Price Crossed DCA Layer 6 (Long)
  Price Crossed DCA Layer 7 (Long)
  Price Crossed DCA Layer 8 (Long)
  Price Crossed DCA Layer 1 (Short)
  Price Crossed DCA Layer 2 (Short)
  Price Crossed DCA Layer 3 (Short)
  Price Crossed DCA Layer 4 (Short)
  Price Crossed DCA Layer 5 (Short)
  Price Crossed DCA Layer 6 (Short)
  Price Crossed DCA Layer 7 (Short)
  Price Crossed DCA Layer 8 (Short)
 
 Strategy Results 
The default settings are designed to define a "loose" price change settings to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary.  The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting.  It is also using 2.74506% of the equity with a Order Size Multiplier of 1.33, using 8 total DCA layers, and a take profit of 2% with no stop loss.  All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the price change strategy and obtain better desirable results.  You do so by scrolling through the chart's history and observing moments when prices tend to move rapidly.  Measure the number or bars it typcially takes for the price to change at a specific rate.  Using this information, you can adjust the Price Change Settings accordingly to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results.  Settings that seem favorable for one market may be found to be disastrous in another.  Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
 How to obtain access to the script? 
You have two choices:
 
  Use the "Website" link below to obtain access to this indicator, or
  Send us a private message (PM) in TradingView itself.
EMA pullback strategyA solid EMA pullback strategy for cryptos 15 min chart that uses EMA crossing as signal and pullback as stop loss. 
EMA1: shortest period for finding crossing (I find period = 33 profitable for BTCUSD, you can adjust it for other cryptos)
EMA2: 5x period of EMA1, for filtering out some trend reversals
EMA3: 11x period of EMA1, for determining trend direction
Rules are: 
Long: 
        close price > EMA3
         EMA1 > EMA3
         close price pullbacks below EMA1 and then crosses up EMA1, enter at the first close price above EMA1
         lowest pullback close price < EMA2 at the cross up 
         
Short: 
         close price < EMA3
         EMA1 < EMA3
         close price pullbacks above EMA1 and then crosses down EMA1, enter at the first close price below EMA1
         highest pullback close price > EMA2 at the cross down 
Stop-loss at lowest/highest pullback price for long/short
Take profit = 2x stop-loss
Risk management: risk range can be set in the inspector. If the risk is lower than the range, the trade is not taken. if the risk is higher than the range, the position size is adjusted to keep the risk within range. 
Keltner Worm Strategy [PrismBot] [Lite]Included in this Keltner Worm Lite Strategy: 
✔️ Tweak a multitude of specific settings (MA lengths, R:R, SL distance etc)
✔️ Enable advanced setup filters
✔️ Use money management and risk calculations
✔️ Draw trade info directly to chart (eg. SL size in percent, win rate etc)
✔️ Use various filters (eg. time filter, date filter, MA slope angle etc)
✔️ Manage risk per position when auto-trading forex through AutoView
✔️ Choose from various alert conditions!  
✔️ Sync to any bot or algorithmic trading system
Some details about this strategy:
- it incorporates 2 strategies - Keltner Re-entry and Baseline MA Crossing
- it uses a take profit and stop loss level fixed
- there are up to 6 allowable "worms"
- the worm multipliers are exponential, so a value of 2 will mean that the 6th worm is multiplied by 6
- you can multiply the offset or the Keltner Channel default values
- You can enable alerts for order entry, take profit, and stop loss values
- You can easily enable and disable strategies using the checkbox.
- This strategy incorporates a risk to reward system where the user can select between ATR and Percent based stop losses and take profit targets. This means that the user has much better control over money management when utilizing this strategy and it doesn't require you to babysit the strategy to ensure it's entering and existing strategies in an ideal place.
8 Whittle DownThe system is designed to short on directionally negative instruments like VXX & SQQQ
 
  The system only shorts, no longs
  It enters a pilot position if the system has no trades open at the time is in the late afternoon
  It uses a 200-day moving average as a filter and will only short if the price is below the 200 day moving average
  The pilot position will only enter with 1/3 ( one third ) of the total expected position size
  StopLossPerc sets the stop loss, (1.15) means it is set to a 15% stop loss. -- The Red Line
 
 
  The system will buy additional shares for a full position if the pilot piston profit target was not reached
  The full shares position is set to purchase at a higher price. T2EntTrgPerc sets the buy percentage target for the additional shares. -- The Yellow Line
  Each entry has different settable profit targets. T1ProfTrgPerc sets the profit target for the first trade (0.95) is basically set to a 5% profit.
  T2ProfTrgPerc sets the profit target for the second trade (0.90) is basically set to a 10% profit. -- The White Line
 
RED LINE == STOP LOSS LINE
GREENLINE == PROFIT TARGET FOR THE 1ST TRADE
YELLOW LINE == ADD ON SHARES TO THE TRADE
WHITE LINE == PROFIT TARGET FOR THE 1st & 2nd TRADE COMBINED
Let me know if you have any questions and I'll try to clarify
NIKI MSS BANKNIFTYThis is the strategy version of my old indicator NIKI BANKIFTY. It is more suitable for day trading with a 5 min chart. It is more profitable in BANKNIFTY future. It is based on multiple Supertrend, moving average, Donchain channel, and linear regression. The background color indicates the main trend and the color of the candle represents a short-term trend. The label with TA and SL represents more profitable entry positions. The label RE: LE and RE: SE stands for re-entry positions or signals with less accuracy. Consider the direction of the linear regression line to take trades on re-entry positions. The yellow candle indicates the entry and the blue candle represents the target or stop-loss.
The backtest results are based on BANKNIFTY last year's data. It has an initial capital of 100000 and the size of the lot is 1. The target is 0.3% and stop-loss is 1.5%. It exactly not following the stop loss, the trade will exit based on the Donchain channel breakout. It appears on the chart as a blue candle. The commission paid is 20 cash per trade and the slippage is 5 ticks per trade. Some of the Indian broker's commission is only 10 cash per trade. Adjust the commission as per your broker. Trades are conducted based on the intraday time in India set from 9.20 am to 2.25 pm. All positions will get square off at 3.00 pm. It will execute a maximum of 4 trades per day. All other parameters are suitable for Robo trading with Indian stock brokers.
Contact us using the link given below to obtain access to this indicator.
TradingView Alerts to MT4 MT5 - Forex, indices, commoditiesHowdy Algo-Traders! This example script has been created for educational purposes - to present how to use and automatically execute TradingView Alerts on real markets.
I'm posting this script today for a reason. TradingView has just released a new feature of the PineScript language - ALERT() function. Why is it important? It is finally possible to set alerts inside PineScript strategy-type script, without the need to convert the script into study-type. You may say triggering alerts straight from strategies was possible in PineScript before (since June 2020), but it had its limitations. Starting today you can attach alert to any custom event you might want to include in your PineScript code.
With the new feature, it is easier not only to execute strategies, but to maintain codebase - having to update 2 versions of the code with each single modification was... ahem... inconvenient. Moreover, the need to convert strategy into study also meant it was required to rip the code from all strategy...() calls, which carried a lot of useful information, like entry price, position size, and more, definitely influencing results calculated by strategy backtest. So the strategy without these features very likely produced different results than with them. While it was possible to convert these features into study with some advanced "coding gymnastics", it was also quite difficult to test whether those gymnastics didn't introduce serious, bankrupting bugs. 
////// 
How does this new feature work? It is really simple. On your custom events in the code like "GoLong" or "GoShort", create a string variable containing all the values you need inside your alert and this string variable will be your alert's message. Then, invoke brand new alert() function and that's it (see lines 67 onwards in the script). Set it up in CreateAlert popup and enjoy. Alerts will trigger on candle close as freq= parameter specifies. Detailed specification of the new alert() function can be found in TradingView's PineScript Reference (www.tradingview.com), but there's nothing more than message= and freq= parameters. Nothing else is needed, it is very simple. Yet powerful :)
//////
Alert syntax in this script is prepared to work with TradingConnector. Strategy here is not too complex, but also not the most basic one: it includes full exits, partial exits, stop-losses and it also utilizes dynamic variables calculated by the code (such as stop-loss price). This is only an example use case, because you could handle variety of other functionalities as well: conditional entries, pending entries, pyramiding, hedging, moving stop-loss to break-even, delivering alerts to multiple brokers and more.
//////
This script is a spin-off from my previous work, posted over a year ago here:  Some comments on strategy parameters have been discussed there, but let me copy-paste most important points:
* Commission is taken into consideration.
* Slippage is intentionally left at 0. Due to shorter than 1 second delivery time of TradingConnector, slippage is practically non-existing.
* This strategy is NON-REPAINTING and uses NO TRAILING-STOP or any other feature known to be causing problems.
* The strategy was backtested on EURUSD 6h timeframe, will perform differently on other markets and timeframes.
Despite the fact this strategy seems to be still profitable, it is not guaranteed it will continue to perform well in the future. Remember the no.1 rule of backtesting - no matter how profitable and good looking a script is, it only tells about the past. There is zero guarantee the same strategy will get similar results in the future.
Full specs of TradingView alerts and how to set them up can be found here: www.tradingview.com
Ultimate Oscillator [Long] StrategyAfter I published Short Selling strategy with RSIofUO , I have been working for Long side strategy with same indicator.
but for Long strategy , I have used only  the Ultimate Oscillator ... (Not the RSI of UO)  
Logic behind this is , when UO goes below oversold level , high chance of possible reversal from there ...
Ultimate Oscialltor values , I have used are 5,  10 and  15
Signal Line 9 
Above values are best/defaulted based on testing the strategy multiple symbols
BUY
when UO  crossing up  buyLine and close > open ( if the cross over is already done , it will wait for 3 candles to see a green bar i.e close>open )
Note when the bar color changes to orange , that means startegy is ready to take LONG position on next bar.  But dont jump here , waith for the startegy take the Long Position :-)
Add
Signal appears when there is divergence (marked in yellow color ) ... strategy doesnt add the position , it is ony indicating you  could add to existing  OR if you missed the BUY signal you could enter here
Partial Exit
when UO  crossing down partial exit level 
Exit
When UO  crossing down sell line 
StopLoss
stop loss defaulted to 3%
Please note , I have slightly modified stop loss exit in this strategy.   
Even though price hits 3% stoploss , strategy wont wind up the position ... 
First , it will check if RSIofUO is above 30 , then it will hold on to the Long position.
Very reason behind this is , price is falling down and UO is going up ... That means there is bullish divergence here .. so it might turn this losing position to profitable one or  will exit you with less than 3% loss.
Tested with SPY , QQQ , TSLA on 30mins to 4hrs. Though winning rate is average , net profit is exponential ...   
Best working on 30 mins and 1 HR chart for  QQQ
Warning
For the eductional purposes only ... 
This is not a financial advise , before taking trading decission please do your own research 
Scalping Strategy with SL and TP activation settingsThis strategy can be used on pretty much every timeframe that gives you a satisfying performance and will give you entries with a high probability of a winning trade.
Recommended are lower timeframes, because after all this is a scalping strategy and with that your chart wont be cluttered. 
 How to use this script? 
Currently you can setup your positions SL and TP,  because the markets vary in volatility it could improve the performance of the strategy.
You will simply get your signals and can decide to act upon them.
Stop loss: Simply your stop loss order which will trigger when price moves a given % away from your entry.
TP-Activation: When price reaches your % target it will trigger a stop limit order. So if price turns against your position after reaching your target it will close your position in profit and if it runs in your favoured direction it will trigger at a later stage.
Trailing-Offset-%: After reaching your % target it will trigger the TP order with an offset. So if you set your trailing offset to 0.1%, your TP order will be set behind 0.1 %.  This can be used to test if the strategy would perform as well
if you leave more room for trades to play out.
 Will this script make me profitable? 
No strategy is a silver bullet and it depends mostly on you.
Trading is not easy and most people fail, because their risk management skills arent solid or they cant control their emotions.
This script will give you statistically often good entries, so even if you hit a losing streak your SL will protect you from losing more than necessary until you get a winning streak.
Patience and consistency is key to be profitable in the long run.
 Does the script repaint? 
Although you will get a notification when setting an alarm that the indicator may repaint, no security function is used and the signals will stay on the chart, because the signal is calculated based on the last candle close and will trigger with the next candle.
I am still looking into why that notification pops up.
You are free to try the indicator for a limited time to be sure.
 My experience with the strategy 
The overall statistical advantage is great. The strategy can be used simply as it is, but becomes better if you already have some experience with trading. Sometimes it will give you a good entry, reaches your target and the price still goes in your preferred direction. So your trading returns and experience could be improved with confluence, but it is totally fine as it is and if used right will help you get going.
Disclaimer: This is no financial advice. This is a tool and I am not responsible for your actions.
If you are interested in the indicator feel free to dm me on TradingView.
Profits Unlimited Pro Strategy** This is the backtesting (strategy) version of ~ Profits Unlimited Pro  ~ proprietary script in TradingView. **
~ Profits Unlimited Pro Strategy  ~
֎ Trading system script on tradingview that brings an easy approach to trading with a high profitability rate
֎ Our proprietary formula was developed over the course of the past two years through a combination of trial and error and algorithmic backtesting.
-- HOW IT WORKS --
֎ The algorithm starts with a proprietary script combining custom inputs with a formula that works with custom bollinger bands settings and specific RSI levels to results in deadly accurate signals for long and short entry points.
but that's not all...
֎  When we first developed our formula, we noticed that it produced a lot of accurate signals but also didn't fully understand the dynamics of market momentum and trending directions...
...so there were a lot of needless calls being made that were reducing profitability.
You see, most markets spend roughly 80% of the time trading sideways with no significant trend either up or down...
...And trading these sideways markets commonly result in what's called a "whipsaw"...
A whipsaw is when price is moving in one direction but then quickly pivots to move in the opposite direction resulting in a loss. And nobody wants to be stuck trading in a sideways market getting killed by whipsaws all day... 
So what did we do to fix this?...
-- THE WINNING FORMULA --
֎ We added the Average Directional Index into our custom formula with a goal of teaching the algorithm to only trade during periods of strong momentum and trends whether up or down.
֎ We also added trend exhaustion levels to give clear indication for exit signals and help determine best times of getting out of a trade. 
֎ Trend Exhaustion Levels work in conjunction with trailing stop loss % and both are customizable for ideal exits and profitability.
֎ The results are mind blowing!
-- WHO IT'S FOR --
֎ Optimized for crypto markets, to catch trend movements as soon as possible and maximize profitability
֎ It's A Swing Traders Dream.
-- What You Get --
֎ Sell & Buy alerts, Stop Loss alerts and always adding new features!
֎ Customizable settings.
֎ Chrome Extension in development for fine-tuning settings automatically(COMING SOON)
-You will be able to select an asset. push a button. and the extension will find the best settings for you!
֎ Users Facebook community for learning, sharing and direct support
If you’d like to test the trading script in TradingView, I can give you access to a 10 days trial.
Please send me PM in tradingview and I’ll activate it right away.
Thank you!
Multi Time Frame Buy&Sell V4.0 [BACKTEST]Hi guys,this indicator Developed for Intraday and multi Time Frame Trading. Note: Invite only Script.Request to me Access permission to test this.
*** THIS IS STUDY VERSION ***
Time Frame : can use for 15 min / 30 min / 1h / 4h time
15 min configuration is best result for bitcoin and ethereum .
This can be used : Crypto Currency/ Bitcoins / ethereum ,Forex,currencies ,Index ,Commodity Gold / silver , Oil Market and in Equity / Futures
ETHUSDT Futures 15min
  
BTCUSDT Futures 15min:
  
GOLD /USD FOREX 15min:
  
HOW IT WORKS:
this indicator analyze EMA&SMA support and resistance then combine with pivot point and fibo levels is used to calculate the signals.and finally show entry label on
chart with target point and stop loss
HOW TO USE:
Creating a signal is as simple as adding the indicator called to your chart(buy or sell)label and background color change ( green=buy / red = sell)
green line is target and black line is stop loss.
in top of setting page you can see noise filter option . that can change it to get better result and reduce noise. in setting can set 3 target level and stoploss
NOT:all information show to info panel in chart.
  
strategy tester : enabled .All you can test this in live market in any segment.
NOT: can to change noise filter in setting setup until to get best result.
Choose any Date Month Year to Current Date and check the results below in the Strategy Tester.
REPAINT/NO REPAINT : No Repaint ,entery labal(buy or sell) and Background Color wont change. In the current candle position wait for the candle to close to see the
stability.
"Set alert": Select "Once per bar close" for your alert options.
There are 5 alerts:
- BUY
- SELL
- BUY OR SELL (for free TV users)
- take profit
- stop loss
Review and Feedback.Thank you!
Any issues report to me to Fix.Thank you!
how To Get access : Use the link below to obtain access to this indicator or PM us to obtain access.
cross ema Strategy(lirshah)cross ema strategy has been written based on ema crossovers,
this strategy trigger buy signal when a fast ema signal crosses the slow ema.
the advantage of this strategy is that, the order will be pending untill it hit one of the emas and then we  will have a trade open.
the next goodness of this strategy is that, it has a none- repainting stop loss.
so the strategy defined intrabar stop loss enstead of fixed stoploss.
the strategy have the capacity to work with 10 pip loss,
so it means more profits and lower draw down.
the below overview is results of US30 wall street index on 5 min chart.
in order to access scripts contact me directly.
HFT Momentum BacktesterDefault Settings are meant to be used in XBT/USD chart on 1 hour time frame. If you want to use for another asset on another time frame YOU MUST CHANGE THE SETTINGS
This is momentum-based strategy designed by HFT Research in order to take advantage of volatile, trending markets.
  
  
Use ADX
ADX stands for average directional index . It is an indicator that measures volatility in the market. Unfortunately, the worst market condition for this strategy is sideways market. ADX becomes a useful tool since it can detect trend. If the volatility is low and there is no real price movement, ADX will pick that up and will not let you get in trades during a sideways market. It will allow you to enter trades only when the market is trending.
Use MA CrossOver
This strategy’s main driver is the moving average cross over however, unlike many other indicators, this strategy has ALL the moving averages that are on trading view. Total of 13 different moving averages all calculated in a different fashion available in a drop-down menu. You are able to choose two different moving averages to cross for your entry as well as being able to adjust the length of each individual moving average.
Use MA Spread % Filter
As an extra protection, we introduced MA spread % filter. We all know that momentum strategy works when there is actually a trend that has momentum. When there is no trend and market side choppy, we get a lot of noisy signals. In order to battle that we have introduced MA spread % filter. Using this piece of setting, you will be able to chose how strong the cross over actually is. If price is moving sideways, the moving averages will cross each other barely. If the price has actually any steam and momentum, MA 1 will cross over MA 2 aggressively because it will be trending market.
First you chose what the minimum % difference there should be between your 2 moving averages. If you keep this too tight, it won’t be as useful and if you keep this too large then the script will not generate any signals. Trust us, there is a fine balance in between! Then you proceed to chose your moving averages that the bot should keep track of.
Check our website for more information.
Backtest assumes the following;
You have 1000$ to trade
You use 1% of your capital on cross margin with 1% Stop Loss. Therefore, every trade has 100% equity effect on your balance and 1% stop loss has 1% loss effect
0.06% commission taking Binance as base. Please change commission if you are using another exchange. 
Support/ Resistance with H1 ATR - strategy mainline versionThis script using ATR (average true range) with source hl2 for create Support/ Resistance line
The color meaning:
- Green = Support line
- Red = Resistance line
Signal:
- If close price breakout Resistance line -> LONG signal will been active.
- If close price breakout Support line -> SHORT signal will been active.
Input setting:
Recommended default setting.
- Factor: amplitude for create Support/ Resistance line.
- Length: length of ATR.
- Offset: number of bar for check sideway or choppy market.
- Take profit: if you want test close position by profit.
- Stop loss: should not be missed.
- Open Position with Stop-Market type:
+ Open LONG position with high price and type Stop-Market.
+ Open SHORT position with low price and type Stop-Market.
Strategy setting:
Recommended default setting if you trade on Binance Futures or change Comission if you trade on another exchange.
Best backtest if:
- Max drawdown less than 10%.
- Min backtest time: 6 month.
- Avg profit: 10%/ month when no leverage is used.
Alert version:
1 - Select create new alert
2 - Condition:
+ eb BUY -> LONG signal
+ eb BUY close -> close LONG position
+ eb SELL -> SHORT signal
+ eb SELL close -> close SHORT position
3 - Option: recommended using   only. Because the signal will be more accurate if the price close breakout successfully.
+ Always put stop loss position to avoid PUMP/ DUMP market.
// Note: alert version not free, send for me a private message on TradingView to get price and gain access.
Recommended:
- Using in M30, M45, H1 timeframe with default setting.
- Symbol: BTC
- Exchange: Binance Futures
- Order size: 10% wallet balance, maximum 25% wallet balance.
- Leverage: X2-X5, maximum X10.
---> I using 10% wallet balance and X2 only.
Why is it ok to backtest on TradingView from now on!TradingView backtester has bad reputation. For a good reason - it was producing wrong results, and it was clear at first sight how bad they were.
But this has changed. Along with many other improvements in its PineScript coding capabilities, TradingView fixed important bug, which was the main reason for miscalculations. TradingView didn't really speak out about this fix, so let me try :)
Have a look at this short code of a swing trading strategy (PLEASE DON'T FOCUS ON BACKTEST RESULTS ATTACHED HERE - THEY DO NOT MATTER). Sometimes entry condition happens together with closing condition for the already ongoing trade. Example: the condition to close Long entry is the same as a condition to enter Short. And when these two aligned, not only a Long was closed and Short was entered (as intended), but also a second Short was entered, too!!! What's even worse, that second short was not controlled with closing conditions inside strategy.exit() function and it very often lead to losses exceeding whatever was declared in "loss=" parameter. This could not have worked well...
But HOORAY!!! - it has been fixed and won't happen anymore. So together with other improvements - TradingView's backtester and PineScript is now ok to work with on standard candlesticks :)
Yep, no need to code strategies and backtest them on other platforms anymore.
----------------
Having said the above, there are still some pitfalls remaining, which you need to be aware of and avoid:
 
 Don't backtest on HeikenAshi, Renko, Kagi candlesticks. They were not invented with backtesting in mind. There are still using wrong price levels for entries and therefore producing always too good backtesting results. Only standard candlesticks are reliable to backtest on.
 Don't use Trailing Stop in your code. TradingView operates only on closed candlesticks, not on tick data and because of that, backtester will always assume price has first reached its favourable extreme (so 'high' when you are in Long trade and 'low' when you are in Short trade) before it starts to pull back. Which is rarely the truth in reality. Therefore strategies using Trailing Stop are also producing too good backtesting results. It is especially well visible on higher timeframe strategies - for some reason your strategy manages to make gains on those huge, fat candlesticks :) But that's not reality.
 "when=" inside strategy.exit() does not work as you would intuitively expect. If you want to have logical condition to close your trade (for example - crossover(rsi(close,14),20)) you need to place it inside strategy.close() function. And leave StopLoss + TakeProfit conditions inside strategy.exit() function. Just as in attached code.
 If you're working with pyramiding, add "process_orders_on_close=ANY" to your strategy() script header. Default setting ("=FIFO") will first close the trade, which was opened first, not the one which was hit by Stop-Loss condidtion.
 
----------------
That's it, I guess :) If you are noticing other issues with backtester and would like to share, let everyone know in comments. If the issue is indeed a bug, there is a chance TradingView dev team will hear your voice and take it into account when working on other improvements. Just like they heard about the bug I described above.
P.S. I know for a fact that more improvements in the backtesting area are coming. Some will change the game even for non-coding traders. If you want to be notified quickly and with my comment - gimme "follow".
Scripting Tutorial B - TManyMA - Commission/FeesThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually.
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish , bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter . Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy.
- Strategy only enters long positions with a market order when MA crossovers occur.
- Strategy exits positions when crossunders occur.
- Trades 100% of the equity with one order/position by default.
- Ability to disable trading certain crosses with input checks.
- Ability to exit trades with a take profit or stop loss.
- User input to allow quick changes to the take profit or stop loss percentages.
- Strategy now calculates on every tick
- Strategy also includes fixed commission values based on Coinbase standard order fees
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
The Always Winning Holy Grail Strategy - Not (by ChartArt)How to win all the time if 1+1 = 2
The most upvoted strategies on Tradingview are those which seemingly work 100%, but they actually don't at all because they are repainting and would not work in live trading reality. They are using the multi-time-frame strategy testing bug and thereby trade during the backtest on close prices before the bar has closed in reality.
Top list of these cheating repainting strategies:
 
 1569 upvotes  ANN Strategy  
 877 upvotes  Vdub FX SniperVX3 Strategy  
 481 upvotes  Get Trend Strategy  
 
I guess there are much more strategies among the top upvoted strategies on Tradingview which cheat with a multi-time-frame close price, but three examples are enough. The ANN Strategy uses the daily close price as multi-time-frame and cheats with that. The Vdub FX SniperVX3 Strategy uses the half-day (720 minute) close price to cheat and the Get Trend Strategy uses the 160 minute bar close for repaint cheating (at least here the author of this strategy explains that his strategy is only demo and would not work, which might be the reason why it has 1000 less upvotes than the ANN Strategy. I already wrote months ago a comment underneat these strategies to explain this issue but it hasn't stopped these strategies from getting more and more upvotes and staying in the top list.
I thought this way of cheating is lame, so I invented a new way to cheat my way to seemingly reach 100% profitable trades all the time by going long if 1+1 is equal to 2. Welcome to super wide stop losses. Simply use a extreme unrealistic large stop loss and take profit after a realistic amount of pips and according to Tradingview's current backtest module you win 100% all the time. Yay! :)
 My recommendation for the Tradingview team is to add a function to let the user define a stop out and margin call level and maybe set a realistic setting as default, like 100%. 
 Please don't trade with this strategy!
BB LONG 2BX & FVB StrategyThis Strategy is optimized for the 2h timeframe. Happy Charting and you're welcome! 
**BB LONG 2BX & FVB Strategy – Simple Text Guide**
---
### **What It Does**
A **long-only trading strategy** that:
- Enters on **strong upward momentum**
- Adds a second position when the trend gets stronger
- Takes profits in parts at **smart price levels**
- Exits fully if the trend weakens or reverses
---
### **Main Tools Used**
| Tool | Simple Meaning |
|------|----------------|
| **B-Xtrender (Oscillator)** | Measures speed of price move. Above 0 = bullish, below 0 = bearish |
| **Weekly & Monthly Timeframes** | Checks if higher timeframes agree with the trade |
| **Red ATR Line** | A moving stop-loss that follows price up |
| **Fair Value Bands (1x, 2x, 3x)** | Profit targets that adjust to market volatility |
---
### **When It Enters a Trade (Long)**
**First Entry:**
- Weekly momentum is **rising**
- Monthly momentum is **positive or increasing**
- No current position
**Second Entry (Pyramiding):**
- Already in trade
- Price breaks **above the Red ATR line** → add same size again  
  (Max 2 total entries)
---
### **When It Takes Profit (Scaling Out)**
| Level | Action |
|-------|--------|
| **1x Band** | Sell **50%** when price pulls back from this level |
| **2x Band** | Sell **50%** when price pulls back from this level |
| **3x Band** | **Exit everything** when price pulls back from this level |
> You can hit 1x and 2x **multiple times** – it will keep taking 50% each time
---
### **When It Exits Fully (Closes Everything)**
1. Price **closes below Red ATR line**
2. Weekly momentum shows **2 red bars in a row, both falling**
3. Weekly momentum **crosses below zero** AND price is below Red ATR
4. Weekly momentum **drops sharply** (more than 25 points in one bar)
> After full exit, it **won’t re-enter** unless price comes back below 2x band
---
### **Alerts You Get**
Every time price **touches** a profit band, you get an alert:
- “Price touched 1x band from below”
- “Price touched 1x band from above”
- Same for **2x** and **3x**
> One alert per touch, per bar
---
### **On the Chart – What You See**
- **Histogram bars (weekly momentum)**  
  Lime = up, Red = down  
  **Yellow highlight** = warning (exit soon)
- **Red broken line** = stop-loss level
- **Blue line** = fair middle price
- **Orange, Purple, Pink lines** = 1x, 2x, 3x profit targets
---
### **Best Used On**
- Daily or 4-hour charts
- Strong trending assets (like Bitcoin, Tesla, S&P 500)
---
### **Quick Rules Summary**
| Do This | When |
|--------|------|
| **Enter** | Weekly up + monthly support |
| **Add more** | Price breaks above Red line |
| **Take 50% profit** | Price pulls back from 1x or 2x |
| **Exit all** | Red line break, weak momentum, or 3x hit |
---
**Simple Idea:**  
**Ride strong trends, add when confirmed, take profits in chunks, cut losses fast.**
[Aegis]DCA grid Strategy for Crypto### **Crypto Market Long-Only Strategy (DCA with Risk Mitigation)**
This strategy is a Long-only approach, often using a Dollar-Cost Averaging (DCA) method for staggered entries. It is designed to mitigate the risk of being unable to exit a position for a prolonged period, which typically occurs when a series of initial DCA entries result in a losing trade.
The strategy has the following characteristics:
#### **1. Markets**
* Trade in highly liquid Perpetual Futures markets for cryptocurrencies.
#### **2. Position Sizing**
The initial entry quantity is determined by setting the **Initial Entry Ratio** in the input values.
* If the **Subsequent Entry Multiplier** is 1, the maximum position size upon final entry is determined by:
  $$\text{Initial Entry Quantity} \times \text{Number of Entries}$$
* If the **Subsequent Entry Multiplier** is $x$, the maximum position size is determined by the following cumulative sum:
  $$\text{1st Entry Quantity} + (\text{1st Entry Quantity} \times x) + (\text{2nd Entry Quantity} \times x) + \dots + ((\text{n-1)th Entry Quantity} \times x)$$
#### **3. Entries**
* The **1st Entry** is determined by the **Entry Sensitivity**. The first entry is automatically calculated based on an oversold condition; setting a higher sensitivity value will trigger the 1st entry in a more significant oversold situation.
* Entries from the **2nd Entry onwards** are made sequentially based on the generated **Grid Spacing**.
* The **Grid Spacing** is calculated as an equal interval:
  $$\text{Grid Spacing} = \frac{\text{Final Entry Distance}}{(\text{Number of Entries} - 1)}$$
#### **4. Exits**
This strategy **does not distinguish between Stop-Loss and Take-Profit**. All entered quantities are liquidated simultaneously upon mean reversion. This transaction may result in either a loss or a profit. Generally:
* If the price recovery is rapid, the trade finishes with a profit.
* If the price recovery is slow, the trade finishes with a loss.
Therefore, the **'resilience' or 'recovery speed'** of the underlying asset significantly influences the long-term performance of the strategy.
크립토 시장에 특화된 Long only전략입니다. DCA 방식의 분할 매수 전략이 대체로 이익 거래가 아닌 경우, 장기간 탈출하지 못할 리스크를 보완한 전략입니다.
이 전략은 다음과 같은 특징을 가지고 있습니다.
##### 1. 시장 (Markets)
• 유동성이 풍부한 코인 무기한 선물 시장에서 거래한다.
##### 2. 포지션 크기 (Position Sizing)
인풋 값에 최초진입비율을 설정함으로써 1차 진입의 수량이 결정됩니다. 
-  추가 진입배수가 1일 때, 최대 진입 시 포지션 크기는 "1차 진입수량 * 진입횟수"에 의해 결정됩니다.
-  추가 진입배수가 x일때, 
	1차진입물량 + (1차진입 물량 * x) + (2차진입 물량 * x) ..... + (n-1)차 진입물량 * x 의 방식으로 최대 진입 시 포지션 크기가 결정 됩니다
##### 3. 진입 (Entries)
-  1차 진입은 진입 둔감도에 의해 결정됩니다. 1차 진입은 과매도 상황을 자동적으로 계산하여 결정되며, 둔감도를 높은 값으로 설정하면 더 큰 과매도 상황에서 1차 진입이 결정됩니다.
- 2차 이후의 진입은 생성된 그리드 간격에 의해 순차적으로 진입하게 됩니다.
- 그리드 간격은 최종 진입 간격 / (진입 횟수 - 1) 으로 등간격으로 이루어집니다.
##### 4. 청산 (Exits)
이 전략은 손절과 익절을 구분하지 않습니다. 평균 회귀를 하는 경우 진입한 모든 물량을 일시에 청산하며, 이 거래는 손실 거래일 수도, 이익 거래일 수도 있습니다. 일반적으로, 가격 회복이 빠르게 되는 경우 이익 거래로 마무리되고, 가격 회복이 느린 경우 손실 거래로 마무리되기 때문에, 장기적으로 종목의 '회복탄력성'이 전략의 성과에 영향을 줄 수 있습니다.
4-Hour Range Scalping [v6.3]User Guide: 4-Hour Range Scalping Strategy 
Hello! Here is the guide for the Pine Script strategy. Please read it carefully to get the best results.
📈 This script automates the "4-Hour Range Scalping Strategy" from the video.
The main idea is that the first four hours of a major trading day (like New York) set up a "trap zone." The strategy waits for the price to break out of this zone and then fail, giving us a signal that the breakout was false and the price is likely to reverse.
Here’s the simple logic:
 
 Define the Range: It precisely calculates the highest high and lowest low during the first four hours of the selected trading session (e.g., 00:00 to 04:00 New York Time).
 Wait for a Breakout: It then monitors the 5-minute chart for a price breakout where a candle fully closes outside of this established range.
 Identify the Reversal: The trade trigger occurs when the price fails to continue its breakout and a subsequent 5-minute candle closes back inside the range. This signals a potential reversal or "failed breakout."
 Execute the Trade:
]A Short (Sell) trade is triggered after a failed breakout above the range high.
A Long (Buy) trade is triggered after a failed breakout below the range low.
 Manage the Risk: The Stop Loss is automatically placed at the peak (for shorts) or trough (for longs) of the breakout move, and the Take Profit is set to a default 2:1 Risk/Reward Ratio.
 
 How to Use the Script (Step-by-Step) ⚙️ 
Follow these instructions to get it running perfectly.
1. Set Your Chart Timeframe This is the most important step. The strategy is designed to run on a 5-minute (5m) chart. Open your TradingView chart and make sure the timeframe is set to "5m".
2. Add the Script to Your Chart Open the Pine Editor tab at the bottom of TradingView, paste the entire script, and click the "Add to chart" button.
3. Configure the Settings On your chart, find the strategy's name (e.g., "4-Hour Range Scalping  ") and click the gear icon ⚙️ to open its settings.
Trading Session: Choose the session for the range. New York is the default and the one from the video.
Risk/Reward Ratio: The default is 2.0, meaning your potential profit is twice your potential loss. You can adjust this to test other targets.
Backtesting Period: To see how the strategy performed on all historical data, go to the "Strategy Tester" panel, click its own gear icon ⚙️, and uncheck the boxes for "Start Date" and "End Date."
4. Understand the Visuals on Your Chart
Blue Background Area: This is the 4-hour calculation window. The script is identifying the day's high and low during this time. No trades will ever happen here.
Red Line (Range High): The highest price of the 4-hour window. This is the upper boundary of the "trap zone."
Green Line (Range Low): The lowest price of the 4-hour window. This is the lower boundary.
Green Triangle (▲): Shows where a Long (Buy) trade was entered.
Red Triangle (▼): Shows where a Short (Sell) trade was entered.
A Very Important Note on Timezones 🕒
This is critical for you in the Philippines (PHT).
The script is based on the New York session, which is 12 hours behind you. Your TradingView chart will still show your local time, but the script works on NY time in the background.
The New York "day" begins at 12:00 PM (Noon) your time.
The script's blue calculation window will be from 12:00 PM to 4:00 PM your local time.
The red and green range lines will appear on your chart only after 4:00 PM your time.
So, if you look at your chart in the morning or early afternoon, you will not see today's range yet. This is normal! The script is just waiting for the New York session to start.
How to Set Up Trade Alerts 🔔
You can have TradingView send you a notification whenever the script enters a trade.
Click the "Alert" button (looks like a clock) in the right-hand toolbar of TradingView.
In the "Condition" dropdown, select the name of the script (e.g., "4-Hour Range Scalping...").
You will then see two options: "Long Signal" and "Short Signal".
Select one (e.g., "Long Signal") and configure how you want to be notified (e.g., "Notify on app").
Click "Create". Repeat the process to create an alert for the other signal.
⚠️ Important Disclosure
For Educational and Research Purposes Only.
This script and all accompanying information are provided for educational and research purposes only. The strategy demonstrated is a technical concept and should not be misconstrued as financial, investment, legal, or tax advice.
Trading financial markets involves substantial risk and is not suitable for every investor. There is a possibility that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.
Past performance is not indicative of future results. The backtesting results shown by this script are historical and do not guarantee future performance. Market conditions are constantly changing.
By using this script, you acknowledge that you are solely responsible for any and all trading decisions you make. You should conduct your own thorough research and, if necessary, seek advice from an independent financial advisor before making any investment decisions. The creators of this script assume no liability for any of your trading results.






















